﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Mvc;
using HANS.Common;

namespace HANS_BackStage.Model.WebModel
{
    [Serializable]
    public  class HANS_Login
    {

        [Required(ErrorMessage ="账号必须")]
        [DisplayName("登录账号")]
        [RegularExpression(Regular.AccountNumber,ErrorMessage ="账号格式错误")]
        public string Nane { get; set; }
        [Required(ErrorMessage ="密码必须")]
        [DisplayName("登录密码")]
        [RegularExpression(Regular.Password,ErrorMessage ="密码格式错误")]
        public string Password { get; set; }
        public bool RememberMe { get; set; }
        public string ReturnUrl { get; set; }

        [DisplayName("角色ID")]
        public string RoleTye { get; set; }

        public HANS_BackStage.Model.DbModel.Backstage_role role { get; set; }

        public List<SelectListItem> Roles { get; set; }
    }
}
